<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="org.springframework.web.util.UrlPathHelper"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator"  %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page"      prefix="page"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<c:set var="fullUrl" value="<%= new UrlPathHelper().getOriginatingRequestUri(request) %>"/>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<c:set var="currentUrl" value="${fn:replace(fullUrl, ctx, '')}"/>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title><decorator:title /></title>
	
	    <script src="<c:url value="/resources/js/jquery-1.10.2.min.js"/>"></script>
	    <script src="<c:url value="/resources/js/bootstrap.min.js"/>"></script>
	    <script src="<c:url value="/resources/js/bootstrap.js"/>"></script>
	    <link href="<c:url value="/resources/css/bootstrap.css"/>" rel="stylesheet">
	    <link href="<c:url value="/resources/css/bootstrap-responsive.css"/>" rel="stylesheet">
</head>
<body>

<div class="navbar">
  <div class="navbar-inner">
    <div class="container">
 
      <!-- Be sure to leave the brand out there if you want it shown -->
      <a class="brand" href="#">Project name</a>
 
      <!-- Everything you want hidden at 940px or less, place within here -->
      <div class="nav-collapse collapse">
        <!-- .nav, .navbar-search, .navbar-form, etc -->
        <ul class="nav">
			<li><a href="#">Home</a></li>
			<li <c:if test="${currentUrl eq '/board/list?boardCode=1'}">class="active"</c:if>><a href="<c:url value="/board/list?boardCode=1" />">게시판</a></li>
			<li <c:if test="${currentUrl eq '/board/list?boardCode=2'}">class="active"</c:if>><a href="<c:url value="/board/list?boardCode=2" />">Q&A</a></li>
			<li <c:if test="${currentUrl eq '/board/list?boardCode=3'}">class="active"</c:if>><a href="<c:url value="/board/list?boardCode=3" />">답변형 게시판</a></li>
		</ul>
      </div>
      
    </div> <!-- container -->
  </div> <!-- navbar-inner -->
</div> <!-- navbar -->

</body>
</html>